package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GwSectorMapper;
import com.ruoyi.system.domain.GwSector;
import com.ruoyi.system.service.IGwSectorService;

/**
 * 行业Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-08
 */
@Service
public class GwSectorServiceImpl implements IGwSectorService 
{
    @Autowired
    private GwSectorMapper gwSectorMapper;

    /**
     * 查询行业
     * 
     * @param id 行业主键
     * @return 行业
     */
    @Override
    public GwSector selectGwSectorById(String id)
    {
        return gwSectorMapper.selectGwSectorById(id);
    }

    /**
     * 查询行业列表
     * 
     * @param gwSector 行业
     * @return 行业
     */
    @Override
    public List<GwSector> selectGwSectorList(GwSector gwSector)
    {
        return gwSectorMapper.selectGwSectorList(gwSector);
    }

    /**
     * 新增行业
     * 
     * @param gwSector 行业
     * @return 结果
     */
    @Override
    public int insertGwSector(GwSector gwSector)
    {
        return gwSectorMapper.insertGwSector(gwSector);
    }

    /**
     * 修改行业
     * 
     * @param gwSector 行业
     * @return 结果
     */
    @Override
    public int updateGwSector(GwSector gwSector)
    {
        return gwSectorMapper.updateGwSector(gwSector);
    }

    /**
     * 批量删除行业
     * 
     * @param ids 需要删除的行业主键
     * @return 结果
     */
    @Override
    public int deleteGwSectorByIds(String[] ids)
    {
        return gwSectorMapper.deleteGwSectorByIds(ids);
    }

    /**
     * 删除行业信息
     * 
     * @param id 行业主键
     * @return 结果
     */
    @Override
    public int deleteGwSectorById(String id)
    {
        return gwSectorMapper.deleteGwSectorById(id);
    }
}
